<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="image/css.css" type="text/css" />
<title>管理</title>
<style >body{color:#000;background:#fff;padding:6px 0 0;margin:0;position:relative;font-size:12px;}
body,th,td,.p1,.p2{font-family:arial}p,form,ol,ul,li,dl,dt,dd,h3{margin:0;padding:0;list-style:none}
</style>
</head>
<body>
<?php
include 'Nav.php';
include 'configs\config.php';
$mysql = new mysql();
$mysql->open($config);

$show = @trim($_GET['show']);

$query = $mysql->select('*', 'sms_type');

$query[]=array('ID'=>'0','type_name'=>'精选内容');
//echo '<pre>';
//print_r($query);
foreach($query as $v)
{
	echo $v['ID'].'  <a href="?id='.$v['ID'].'&show=id">'.$v['type_name'].'</a>|';
}
echo '<br/><br/>';




if($show=='id')
{
	$where = "typeid=".$_GET['id'];
}
else
{
	$where = "1=1";
}

$query = $mysql->select('*', 'sms_content',$where);
foreach($query as $v)
{
	echo '&nbsp;&nbsp;typeid==>'.$v['typeid'].'&nbsp;&nbsp;ID==>'.$v['ID'].'&nbsp;&nbsp;isfavorite==>'.$v['isfavorite'].'<a href="sms_manage_edit.php?id='.$v['ID'].'&typeid='.$v['typeid'].'&isfavorite='.$v['isfavorite'].'"> 【修改】 </a> =='.$v['content'].'<br/>';
}
echo '<br/><br/>';




unset($mysql);
?>
</body>
</html>